package com.example.demo.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("device_config")
public class DeviceConfig {
    @TableId(type = IdType.AUTO)
    private Long id;

    private String imei;;
    private String openid;
    private String alarmPhone1;
    private String alarmPhone2;
    private String alarmPhone3;
    private Boolean wechatAlarm;
    private Boolean wechatRecover;
    private Boolean smsAlarm;
    private Boolean smsRecover;
    private Boolean phoneAlarm;
    private Boolean phoneRecover;
    private Boolean recordingEnabled;
    private Boolean manualLocation;
    private Integer alarmInterval;
    private Integer alarmTimes;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
